package com.ithuaxin.method;

import java.util.Random;

public class Test8 {
    public static void main(String[] args) {
        int arr[] = new int[]{2,588,888,1000,10000};
        int brr[] = new int[arr.length];
        Random r = new Random();
        int num;
        for (int i = 0; i < brr.length; i++) {
             num = r.nextInt(5);
            System.out.println(num);
             for (int j=0;j < brr.length;j++){
                 if (arr[num] == brr[j]){
                     num = r.nextInt(5);
                     System.out.println(num + "下面");
                     j = 0;
                     continue;
                 }
             }
            brr[i] = arr[num];
            System.out.println(arr[num]+"的奖金被抽走");
        }

    }
}
